// After
import { createRoot } from 'react-dom/client';
import App from './App'
import store from './redux/store'

const container = document.getElementById('root');
const root = createRoot(container);
root.render(<App/>);

// 检测数据变化掉render
store.subscribe(()=>{
    root.render(<App/>);
})